/*	
 *				
 *					ISNW ---- It is a war.It is not warcraft!
 *
 *
 *					Author:					zhoukeli(haxixi_keli)
 *					Filename:				ISNW_Font.h
 *					CreateTime:				2008/11/29
 *					ModifyTime:				2008/11/29
 *
 */

#ifndef ISNW_FONT_H
#define ISNW_FONT_H

#include <Windows.h>

#include "../../ISNW_Core/ISNW_Core.h"

#include "../ISNW_d3d/ISNW_d3dinclude.h"

#include "../ISNW_d3d/ISNW_d3dinclude.h"

namespace ISNW
{
	class ISNW_Font
	{
	public:
		enum ISNW_FONT_FORMAT{
			ISNW_FONT_BOLD,
		};
	private:
		ISNW_Font();
	public:
		~ISNW_Font();

	public:
		static ISNW_VOID InitFont();

		static ISNW_Font* GetPtr();

		ISNW_VOID Init();

		ISNW_VOID Create();

		ISNW_VOID DrawText(char* p,ISNW_INT count,RECT rect);

		ISNW_VOID SetFont(ISNW_FONT_FORMAT ff)
		{
			m_format = ff;
		}

		ISNW_VOID Release();

		HDC	GetDC(){return m_hdc;}
		HFONT GetFont(){return m_hfont;}

	protected:
		HFONT		m_hfont;
		HDC			m_hdc;

		// D3DXFont interface
		LPD3DXFONT	m_d3dfont;

		ISNW_FONT_FORMAT m_format;
	};

	extern ISNW_Font* g_pFont;
}
#endif